#include <boost/lambda/lambda.hpp>
#include <iostream>
#include <iterator>
#include <array>
#include <algorithm>

//using namespace std;

int lenString(const char* s){
	int i = 0;
	while(true){
		if(s[i] == '\0')break;
	 	i++;
	}
	return i;
}
char* concast_2String(const char* s1, const char* s2){
	int i, j;
	int len1 = lenString(s1);
	int len2 = lenString(s2);
	int len3 = len1 + len2;
	char* pMerg = new char[len3+1];
	for(i = 0; i < len1; i++)
		pMerg[i] = s1[i];
	for(j = len1; j < len3; j++)
		pMerg[j] = s2[j-len1];
	return pMerg;	
}



int main() {
	int s = 10;
  std::array<int,10> myarray;

  // assign some values:
  for (int i=0; i<10; i++) myarray.at(i) = i+1;

  // print content:
  std::cout << "myarray contains:";

  for (int x:myarray)
	 std::cout<<x<<' ';
 //   std::cout << ' ' << myarray.at(i);
  std::cout << '\n';
  std::cout<<"max size "<<myarray.max_size()<<"\n"; 
  return 0;
}